package cn.geminis.lowcode.compiler.code;

import cn.geminis.lowcode.compiler.util.JdkTreeMakerUtils;
import com.sun.source.tree.NewClassTree;
import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * @author puddi
 */
@RequiredArgsConstructor
public class LcNewClass extends AbstractExpression<NewClassTree> {
    private final String clazz;
    private final List<String> parameters;

    @Override
    protected NewClassTree createJdkTree() {
        return JdkTreeMakerUtils.newClass(clazz, parameters);
    }

}
